package utils

import (
	"AiBus/global"
	"AiBus/model"
)

func SearchUser(SearchName, SearchContent string, UserId string) error {
	tx := global.App.DB.Create(&model.SearchUser{
		SearchName:    SearchName,
		SearchContent: SearchContent,
		UserId:        UserId,
	})

	if tx.Error != nil {
		return tx.Error
	} else {
		return nil
	}

}
